package com.android.demp;


import android.view.animation.Animation;
import android.widget.TextView;

public final class DisplayNextView implements Animation.AnimationListener {
private boolean mCurrentView;
TextView text1;
TextView text2;

public DisplayNextView(boolean currentView, TextView text1, TextView text2) {
mCurrentView = currentView;
this.text1 = text1;
this.text2 = text2;
}

public void onAnimationStart(Animation animation) {
}

public void onAnimationEnd(Animation animation) {
text1.post(new SwapViews(mCurrentView, text1, text2));
}

public void onAnimationRepeat(Animation animation) {
}
}